@echo off

echo "Removing old dist directory..."
del /F /S /Q dist

echo "Creating directories..."
mkdir dist
mkdir dist\vs2005
mkdir dist\vs2005\en-US
mkdir dist\vs2008
mkdir dist\vs2008\en-US

echo "Copying files for VS 2005 plugin..."
copy Marmoset.AddIn dist\vs2005
copy bin\Marmoset.dll dist\vs2005
copy bin\en-US\Marmoset.resources.dll dist\vs2005\en-US

echo "Creating zip file for VS 2005 plugin..."
cd dist\vs2005
zip -9r ..\Marmoset-vs2005.zip *
cd ..\..

echo "Copying files for VS 2008 plugin..."
copy Marmoset-vs2008.AddIn dist\vs2008\Marmoset.AddIn
copy bin\Marmoset.dll dist\vs2008
copy bin\en-US\Marmoset.resources.dll dist\vs2008\en-US

echo "Creating zip file for VS 2008 plugin..."
cd dist\vs2008
zip -9r ..\Marmoset-vs2008.zip *
cd ..\..

echo "Done"
